//
//  ExchangeSucceedViewController.m
//  Consume100
//
//  Created by eliot on 16/3/29.
//  Copyright © 2016年 aleven. All rights reserved.
//

#import "ExchangeSucceedViewController.h"

@interface ExchangeSucceedViewController ()
@property (weak, nonatomic) IBOutlet UIView *btnBGV;


@property (weak, nonatomic) IBOutlet NSLayoutConstraint *iconLeft;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *bmyDetailBtnW;

@property (weak, nonatomic) IBOutlet UIButton *bmyDetailBtn;

@property (weak, nonatomic) IBOutlet UITableView *tableView;
@end

@implementation ExchangeSucceedViewController

+(ExchangeSucceedViewController*)CreatExchangeSucceedViewController{
    
    UIStoryboard *story=[UIStoryboard storyboardWithName:@"Main" bundle:nil];
    ExchangeSucceedViewController *ExchangeSucceedViewController=[story instantiateViewControllerWithIdentifier:@"ExchangeSucceedViewController"];
    return ExchangeSucceedViewController;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.iconLeft.constant = Width / 2 - 55;
    self.bmyDetailBtnW.constant = 103 / 320.0 *Width;
    
    self.title = @"兑换成功";
    self.tableView.tableFooterView = [[UIView alloc] init];
     self.tableView.backgroundColor = [UIColor colorWithRed:237/255.0 green:237/255.0 blue:237/255.0 alpha:1];
     self.btnBGV.backgroundColor = [UIColor colorWithRed:237/255.0 green:237/255.0 blue:237/255.0 alpha:1];
    /** 设置导航啦样式*/
    [self.navigationController.navigationBar setTitleTextAttributes:@{NSFontAttributeName:[UIFont systemFontOfSize:19],NSForegroundColorAttributeName:[UIColor whiteColor]}];
    self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
    [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor whiteColor]}];
    self.navigationController.navigationBar.translucent = NO;
    self.bmyDetailBtn.layer.cornerRadius = 8;
    self.bmyDetailBtn.layer.masksToBounds = YES;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/** 点击我的订单*/
- (IBAction)clickbmyDetailBtnclick:(id)sender {
    
    
    
    
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 2;
}


- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"lastCell"];
    if (!cell) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:@"lastCell"];
    }
    if (indexPath.row == 0) {
        cell.textLabel.text = @"支付金币";
        cell.detailTextLabel.text = @"6588个";
    }else {
        cell.textLabel.text = @"交易时间";
        cell.detailTextLabel.text = @"3016-03-20";
    }
    return cell;
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
